package com.poetry.common.constant;

import com.poetry.common.util.IConstant;
import lombok.AllArgsConstructor;

/**
 * 键值对常量
 */
@AllArgsConstructor
public enum KVConstant implements IConstant {

    /**
     * 保存数据成功
     */
    SAVE_SUCCESS(2001, "保存数据成功！！！"),

    /**
     * 删除数据成功
     */
    DELETE_SUCCESS(2003, "删除数据成功！！！");

    private int code;

    private String msg;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
